﻿using System;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using FwProject.Core.Restaurant;
using FwProject.Core.Distribution;
using FwProject.Core.FactoryInfo;
using Abp.AutoMapper;
using AutoMapper;
using Abp.Domain.Entities;

namespace FwProject.Distribution.Dto
{
    [AutoMap(typeof(DistributionInfoDetails))]
    public class DistributionDetailsInputDto : Entity<Guid?>
    {
        /// <summary>
        /// 餐厅编号
        /// </summary>
        /// <value>The restaurantid.</value>
        [Display(Name ="餐厅编号")]
        public Guid Restaurantid { get; set; }


        /// <summary>
        /// 产品型号
        /// </summary>
        /// <value>The restaurantid.</value>
        [Display(Name = "产品型号")]
        public Guid? RestaurantTypenNumberInfoId { get; set; }


        /// <summary>
        /// 本次配送套数
        /// </summary>
        /// <value>The distributioncount.</value>
        [Display(Name = "本次配送套数")]
        public int Distributioncount { get; set; } = 0;
        /// <summary>
        /// 回收
        /// </summary>
        /// <value>The recoverycount.</value>
        [Display(Name = "回收")]
        public int Recoverycount { get; set; } = 0;
        /// <summary>
        /// 换货
        /// </summary>
        /// <value>The exchangegoodscount.</value>
        [Display(Name = "换货")]
        public int Exchangegoodscount { get; set; } = 0;
        /// <summary>
        /// 折损
        /// </summary>
        /// <value>The damagecount.</value>
        [Display(Name = "折损")]
        public int Damagecount { get; set; } = 0;
        /// <summary>
        /// 赠送
        /// </summary>
        /// <value>The givecount.</value>
        [Display(Name = "赠送")]
        public int Givecount { get; set; } = 0;
        /// <summary>
        /// 退箱
        /// </summary>
        /// <value>The backboxcount.</value>
        [Display(Name = "退箱")]
        public int Backboxcount { get; set; } = 0;
        /// <summary>
        /// 退数
        /// </summary>
        /// <value>The backnumbercount.</value>
        [Display(Name = "退数")]
        public int Backnumbercount { get; set; } = 0;

        
        //[Display(Name = "配送编号")]
        //public Guid DistributionInfoId { get; set; }

        [Display(Name ="配送型号")]
        public Guid? TypeNumberInfoId { get; set; }

        [Display(Name = "型号名称")]
        public string TypeNumberName { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        /// <value>The pricestatus.</value>
        [Display(Name = "支付状态")]
        public Pricestatus Pricestatus { get; set; } = Pricestatus.未结账;

        [Display(Name = "单价")]
        public decimal TypeNumberPrice { get; set; } = 0.0m;
        /// <summary>
        /// 应支付金额
        /// </summary>
        /// <value>The price.</value>
        [Display(Name = "应支付今额")]
        public decimal Sumprice { get; set; } = 0;

        ///// <summary>
        ///// 型号单价
        ///// </summary>
        //public decimal TypeNumberPrice { get; set; } = 0;
        /// <summary>
        /// 结账编码
        /// </summary>
        /// <value>The prices identifier.</value>
        //[Display(Name = "结账编码")]
        //public Guid PricesId { get; set; }
    }
}
